<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/sncss/js/jquery.js"></script>


</head>


<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
		<li><a>首页</a></li>
		<li><a>订单管理</a></li>
		<li><a>新订单列表</a></li>
		<li><a onClick="javascript:history.back(-1);">返回</a></li>
		</ul>
		</div>

		<div class="rightinfo">
		<div class="tools">

			<form id="form1" name="form1" method="get" action="{:U('/Home/Sendorder/mysendorder_list')}">
				 <!-- Unnamed (下拉列表框) -->

					<select class="newselect" id="u1_input" name="soundtype" >
						<option  value="0" <?php if($soundtype == 0){echo "selected='selected'";}?>>全部类型</option>
						<option  value="1" <?php if($soundtype == 1){echo "selected='selected'";}?>>评述讲解</option>
						<option  value="2" <?php if($soundtype == 2){echo "selected='selected'";}?>>情感演绎</option>
						<option  value="3" <?php if($soundtype == 3){echo "selected='selected'";}?>>娱乐互动</option>
						<option  value="4" <?php if($soundtype == 4){echo "selected='selected'";}?>>新闻播报</option>
						<option  value="5" <?php if($soundtype == 5){echo "selected='selected'";}?>>英文播报</option>
					</select>
					<select class="newselect" id="u3_input" name="ordertype" >
						<option  value="0" <?php if($ordertype == 0){echo "selected='selected'";}?>>全部</option>
						<option  value="1" <?php if($ordertype == 1){echo "selected='selected'";}?>>重要</option>
					</select>
				<!-- Unnamed (下拉列表框) -->

					<input name="order_name" type="text" class="dfinput" placeholder="标题/订单编号" id="user" value="<?php echo $order_name;?>" />
					<input name="" type="submit" class="btn" value="搜索"/>
			</form>
			<div style="float: right; margin-bottom: 15px;line-height: 40px;">
				已接到：{$allordernum}，配音中：{$nowordernum}，已完成：{$getordernum}
			</div>
		</div>
		<table class="tablelist">
			<thead>
			<tr>
				<th width="60">序号</th>
				<th width="120">文章编号</th>
				<th width="200">标题</th>
				<th width="80">类型</th>
				<th width="50">性别</th>
				<th width="60">字数</th>
				<th width="50">重要</th>
				<th width="150">最晚交付时间</th>
				<th width="220">订单状态</th>
				<th>操作</th>
				</tr>
				</thead>
				<tbody>

	<foreach name='orderinfo' item='v'>
		<tr>
			<td>{$v.id}</td>
			<td>{$v.article_id}</td>
			<td>
				<?php echo mb_strlen($v['title']) > 14 ? mb_substr($v['title'],0,14, 'utf-8').'...' : $v['title'];?></td>
			<td>
				<switch name="v.category" >
				<case value="1">评述讲解</case>
				<case value="2">情感演绎</case>
				<case value="3">娱乐互动</case>
				<case value="4">新闻播报</case>
				<case value="5">英文播报</case>
				<default />未知
				</switch>
			</td>
			<td>
				<switch name="v.sex" >
				<case value="0">全部</case>
				<case value="1">男</case>
				<case value="2">女</case>
				<default />未知
				</switch>
			</td>
			<td>{$v.words}</td>
			<td><if condition="$v.isimportant == 1">是<else />否</if></td>
			<td>{$v.pay_time|date="Y-m-d H:i:s",###}</td>
			<td>
				<switch name="v.status" >
				<case value="1">保底待抢单</case>
				<case value="3"><font color="#00BFFF">保底待交付</font></case>
				<case value="5"><font color="#FF69B4">已交付未结算:{$v.audio_upload_time|date="Y-m-d H:i:s",###}</font></case>
				<case value="7"><font color="#FF4500">已交付已结算:{$v.audio_upload_time|date="Y-m-d H:i:s",###}</font></case>
				<default />未知
				</switch>
			</td>
			<td>
			<?php if($v['adminid']==0){?>
			<a href="/Home/Sendorder/getsendorder?oid=<?php echo $v['id'];?>" class="tablelink"  onclick="if(confirm('确定处理该订单吗?')==false)return false;">待处理</a>
			<?php }?>
			<?php if($v['adminid']==$adminid){?>
			<a href="/Home/Sendorder/sendorder_message?oid=<?php echo $v['id'];?>" class="tablelink"><?php echo $v['status']==2?"交付":"详情";?></a>
			<!-- <a class="tablelink">已处理</a> -->
			<?php }?>
			</td>
		</tr>
	</foreach>

				</tbody>
		</table>
		<style>.pages a,.pages span {
		display:inline-block;
		padding:2px 5px;
		margin:0 1px;
		border:1px solid #f0f0f0;
		-webkit-border-radius:3px;
		-moz-border-radius:3px;
		border-radius:3px;
}
.pages a,.pages li {
		display:inline-block;
		list-style: none;
		text-decoration:none; color:#58A0D3;
}
.pages a.first,.pages a.prev,.pages a.next,.pages a.end{
		margin:0;
}
.pages a:hover{
		border-color:#50A8E6;
}
.pages span.current{
		background:#50A8E6;
		color:#FFF;
		font-weight:700;
		border-color:#50A8E6;
}</style>

	 <div class="pages"><br />

												<div align="right">{$page}
												</div>
	 </div>

		</div>

		<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>
<script src="__PUBLIC__/js/jquery1.8.3.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
<style type="text/css">
.newselect2{
  height:36px;
  line-height:36px;
  border:1px solid #c5c5c5;
  width: 400px;
}
.mainlist{padding:10px;}
</style>
<script type="text/javascript">
var change = function(sel){
		document.getElementById("passmessage").value = sel.value;
}
function orderpass(oid){
		layer.open({title: false, type: 1, area: ['600px', '300px'], //宽高
				content: '<div class="mainlist"><form id="form2" name="form2" method="post" action="/Home/Order/order_pass" onsubmit="return form2_submit();"><select class="newselect2" name="message" onchange="change(this)">'
				+'<option value="就是任性，就是想驳回，不需要理由">备选驳回原因</option>'
				+'<option value="录音环境嘈杂">录音环境嘈杂</option>'
				+'<option value="音频质量不达标">音频质量不达标</option>'
				+'<option value="片头背景音不符合">片头背景音不符合</option>'
				+'</select><br><br><textarea class="textinput" name="passmessage" id="passmessage"></textarea>'
				+'<input name="oid"  type="hidden" class="dfinput" value="'+oid+'" />'
				+'<br><br><input type="submit" class="btn" value="审核驳回"/></form></div>'
		});
}

function form2_submit(){
	var passmessage= $('#passmessage').val();
	if(passmessage.length==0){
			layer.msg('必须填写理由');return false;
			// alert('必须填写理由');return false;
	}
}
</script>
</html>
